package homeWork.Six.car;

//出租车
class Taxicab extends Car {
    //所属出租公司
    private String firm;

    public Taxicab(String firm,String plate) {
        this.firm = firm;
        this.plate = plate;
    }

    @Override
    public void start() {
        System.out.println("乘客您好");
        System.out.println("我是" + firm + ",我的车牌号是" + this.plate + "你要去哪里?");
    }

    @Override
    public void stop() {
        System.out.println("目的地已经到了,请您下车付款,欢迎再次乘坐");
    }
}
